Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/dmsg serve #165

Closed
wants to merge 11 commits into from
Closed

Update/dmsg serve #165

wants to merge 11 commits into from

Conversation

Kifen
Copy link
Contributor

@Kifen Kifen commented Feb 21, 2020

Did you run make format && make check? yes

Fixes #

Changes:

  • updated call to dmsgS.serve()

How to test this PR:

@Kifen Kifen requested review from evanlinjin, Darkren, nkryuchkov and jdknives and removed request for Darkren February 21, 2020 12:04
@jdknives
Copy link
Member

Binary uploaded.

go.mod Outdated Show resolved Hide resolved
@@ -137,7 +137,7 @@ func createDmsgSrv(t *testing.T, dc disc.APIClient) (srv *dmsg.Server, srvErr <-
srv = dmsg.NewServer(pk, sk, dc)
errCh := make(chan error, 1)
go func() {
errCh <- srv.Serve(l, "")
errCh <- srv.Serve(l, "", 10)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the signature of srv.Serve already changed somewhere? What do you think of extracting 10 to a constant with a describing name? I think it might improve the code readability if one can see what 10 means.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May be resolved though

Copy link
Contributor

@Darkren Darkren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job!

@evanlinjin evanlinjin mentioned this pull request Mar 5, 2020
@jdknives jdknives closed this Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants